﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShopPO.aspx.cs" Inherits="Web.Accounting.ShopPO" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>店铺订货单据查询</title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server" />
    <div>
    店铺订货查询
    </div>
    <ext:Form ID="Form2" runat="server" BodyPadding="5px" EnableBackgroundColor="true"
        Title="检索条件选择">
        <Rows>
            <ext:FormRow ID="FormRow1" runat="server">
            <Items>
                <ext:TextBox ID="TextBoxOrderNo" runat="server" Label="订货单号" Text="" 
                    MaxLength="15">
                </ext:TextBox>
                <ext:TextBox ID="TextBoxShopName" runat="server" Label="店铺名称" Text="" 
                    MinLength="50">
                </ext:TextBox>
                <ext:DropDownList ID="ddlStatus" runat="server" Label="单据状态:" >
                <ext:ListItem Text="Status1" Value="1" Selected="true"/>
                <ext:ListItem Text="Status2" Value="2"/>
                <ext:ListItem Text="Status3" Value="3"/>
                </ext:DropDownList>
            </Items>
            </ext:FormRow>
            <ext:FormRow ID="FormRow2" runat="server">
            <Items>
                <ext:DatePicker ID="DatePickerStartDate" runat="server" Label="开始日期">
                </ext:DatePicker>
                <ext:DatePicker ID="DatePickerEndDate" runat="server" Label="截止日期">
                </ext:DatePicker>
                <ext:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click">
                </ext:Button>
            </Items>
            </ext:FormRow>            
        </Rows>
    </ext:Form>
      <br />
<ext:Panel ID="PanelData" ShowBorder="True" ShowHeader="false" runat="server" AutoHeight="true">
                <Items>
                    <ext:Grid ID="GridResult" Title="GridShopPO" PageSize="20" ShowBorder="false" 
                        ShowHeader="False" AutoHeight="true"
                        runat="server" EnableCheckBoxSelect="True" DataKeyNames="OrderNo,DetailNo" 
                        IsDatabasePaging="true" AllowPaging="true" AllowSorting="true"
                        EnableRowNumber="false" OnSort="GridResult_Sort" 
                        OnPageIndexChange="GridResult_PageIndexChange">
                        <Columns>

                            <ext:HyperLinkField HeaderText="订货单号" DataToolTipField="OrderNo" DataTextField="OrderNo" SortField="OrderNo"
                                DataTextFormatString="{0}" DataNavigateUrlFields="OrderNo" DataNavigateUrlFormatString="http://gsa.ustc.edu.cn/search?q={0}"
                                DataNavigateUrlFieldsEncode="true" Target="_blank" Width="100px"/>
                             <ext:BoundField Width="100px" DataField="GoodsCode" DataFormatString="{0}" HeaderText="商品编号" />
                             <ext:BoundField DataField="GoodsName" DataFormatString="{0}" HeaderText="商品名称" ExpandUnusedSpace="true" />
                             <ext:BoundField Width="100px" DataField="TaxType" DataFormatString="{0}" HeaderText="商品税率" />
                            <ext:TemplateField Width="60px" HeaderText="日配类型">
                                <ItemTemplate>
                                    <%-- Container.DataItem 的类型是 System.Data.DataRowView 或者用户自定义类型 --%>
                                    <%--<asp:Label ID="Label6" runat="server" Text='<%# GetGender(Eval("DayTypeCode")) %>'></asp:Label>--%>
                                     <asp:Label ID="Label1" runat="server" Text='<%#Eval("DayTypeCode") %>'></asp:Label>
                                </ItemTemplate>
                            </ext:TemplateField>
                             <ext:BoundField Width="100px" DataField="OrderQty" DataFormatString="{0}" HeaderText="订货数量" />

                            <ext:BoundField Width="60px" DataField="OrderDate" HeaderText="订货日期" />
                             <ext:BoundField Width="60px" DataField="StatusCode" HeaderText="单据状态" />
                        </Columns>
                    </ext:Grid>
                </Items>
            </ext:Panel>    
    </form>
</body>
</html>
